package com.vcredit.creditcat.util;

import java.util.Collection;

import com.alibaba.dubbo.common.serialize.support.SerializationOptimizer;
import com.vcredit.framework.util.ClazzUtil;

@SuppressWarnings("rawtypes")
public class SerializationOptimizerImpl implements SerializationOptimizer {

	private static Collection<Class> classes;

	@Override
	public Collection<Class> getSerializableClasses() {
		if (classes == null || classes.size() == 0)
			classes = ClazzUtil.getClasses("com.vcredit.creditcat.dto");
		return classes;
	}

}
